package com.example.service.dao;

import com.example.service.bean.SysUserBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
/**
 *<描述>
 *@param
 *
 *@return
 *@Author WANG.SONG.
 */
@Mapper
public interface SysUserBeanMapper {
    /**
     *<描述>
     *@param userId
     *
     *@return
     *@Author WANG.SONG.
     */
    int deleteByPrimaryKey(Long userId);
    /**
     *<描述>
     *@param record
     *
     *@return
     *@Author WANG.SONG.
     */
    int insert(SysUserBean record);
    /**
     *<描述>
     *@param record
     *
     *@return
     *@Author WANG.SONG.
     */
    int insertSelective(SysUserBean record);
    /**
     *<描述>
     *@param userId
     *
     *@return
     *@Author WANG.SONG.
     */
    SysUserBean selectByPrimaryKey(Long userId);
    /**
     *<描述>
     *@param record
     *
     *@return
     *@Author WANG.SONG.
     */
    int updateByPrimaryKeySelective(SysUserBean record);
    /**
     *<描述>
     *@param record
     *
     *@return
     *@Author WANG.SONG.
     */
    int updateByPrimaryKey(SysUserBean record);
    /**
     *<描述>
     *@param condition
     *
     *@return
     *@Author WANG.SONG.
     */
    SysUserBean selectUserByUsernamePassword(Map<String, String> condition);

    /**
     * 查询用户的所有菜单ID
     */
    List<Long> queryAllMenuId(Long userId);
}